//
//  RecommendViewController.m
//  FunKey
//
//  Created by dllo on 15/9/16.
//  Copyright (c) 2015年 FC. All rights reserved.
//

#import "RecommendViewController.h"

@interface RecommendViewController ()

@end

@implementation RecommendViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationController.navigationBar.barTintColor = [UIColor redColor];
    
    self.navigationItem.backBarButtonItem= [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:nil action:nil];
    
    [[UINavigationBar appearance]setTintColor:[UIColor orangeColor]];
    
     UIButton *left = [UIButton buttonWithType:UIButtonTypeCustom];
    left.frame = CGRectMake(0, 0, 30, 30);
    [left setBackgroundImage:[UIImage imageNamed:@"menuLeft@2x.png"] forState:UIControlStateNormal];
    [left addTarget:self action:@selector(goToDrawer:)forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:left];
    
    
    
    
}

#pragma mark -- 跳到抽屉

-(void)goToDrawer:(UIButton *)button
{
    
    AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication]delegate];
    YRSideViewController *sideVC = [delegate yrVC];
    [sideVC showLeftViewController:YES];
    
}


















@end
